﻿<%@ Page Title="Detalhar empresa" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="DetalharEmpresa.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Empresas.DetalharEmpresa" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 35%;
        }
        .style2
        {
            width: 35%;
        }
        .style3
        {
            width: 35%;
        }
        .style5
        {
            width: 230px;
        }
        .style7
        {
            width: 30%;
        }
        .style8
        {
            width: 441px;
        }
    </style>
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="title-telas">
        Detalhar empresa
    </p>
    <div style="margin-bottom: 0px">
        <fieldset>
            <legend id="legend3" runat="server">
                <asp:Label ID="Label3" runat="server" Text="Informações"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="lblNome" runat="server" Text="Nome da empresa:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtNomeEmpresa"
                            runat="server" Width="180px" MaxLength="35" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblResponsavel" runat="server" Text="Nome do responsável:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtResponsavel" runat="server"
                            Width="200px" MaxLength="35" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblCNPJ" runat="server" Text="CNPJ:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCNPJ(this,event);" ID="txtCNPJ" runat="server" Width="180px"
                            MaxLength="18" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblFaturamento" runat="server" Text="Faturamento Autorizado:"></asp:Label><br />
                        <asp:CheckBox ID="ckbFaturamento" runat="server" Enabled="False" ReadOnly="True"
                            Checked="True" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend id="legend4" runat="server">
                <asp:Label ID="lblContato" runat="server" Text="Contato"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblTelefone1" runat="server" Text="Telefone 1:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtTelefone1" runat="server"
                            Width="120px" MaxLength="8" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblCelular1" runat="server" Text="Celular 1:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtCelular1" runat="server"
                            Width="120px" MaxLength="8" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblTelefone2" runat="server" Text="Telefone 2:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtTelefone2" runat="server"
                            Width="120px" MaxLength="8" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblCelular2" runat="server" Text="Celular 2:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtCelular2" runat="server"
                            Width="120px" MaxLength="8" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtEmail" runat="server"
                            Width="180px" MaxLength="40" Enabled="False" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <fieldset>
                    <legend id="legend5" runat="server">
                        <asp:Label ID="lblEndereco" runat="server" Text="Endereço"></asp:Label>
                    </legend>
                    <table style="width: 100%;">
                        <tr>
                            <td class="style5">
                                <asp:Label ID="lblCEP" runat="server" Text="CEP:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataCEP(this,event);" ID="txtCEP" runat="server" Width="150px"
                                    MaxLength="9" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                <asp:Label ID="lblLogradouro" runat="server" Text="Logradouro:"></asp:Label></asp:Label><br />
                                <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtLogradouro"
                                    runat="server" Width="225px" MaxLength="40" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style7">
                                <asp:Label ID="lblBairro" runat="server" Text="Bairro:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtBairro" runat="server"
                                    Width="200px" MaxLength="30" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style8">
                                <asp:Label ID="lblNumero" runat="server" Text="Número:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataInteiro(this,event);" ID="txtNumero" runat="server"
                                    Width="70px" MaxLength="6" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style5">
                                <asp:Label ID="lblCidade" runat="server" Text="Cidade:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtCidade" runat="server"
                                    Width="150px" MaxLength="30" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style7">
                                <asp:Label ID="Estado" runat="server" Text="Estado:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtEstado" runat="server"
                                    EnableTheming="True" Width="150px" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style8">
                                <asp:Label ID="lblComplemento" runat="server" Text="Complemento:"></asp:Label><br />
                                <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtComplemento"
                                    runat="server" Width="200px" MaxLength="40" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div align="left" style="width: 40%; float: left">
            <input type="button" class="btnsVoltar" value="Voltar" onclick=" javascript : history.back(-1);">
            <asp:Button ID="btnEditar" runat="server" Text="Editar" Width="100px" OnClick="btnEditar_Click" />
        </div>
    </div>
</asp:Content>
